package com.cqw.commontest.mongodb.service;

import com.cqw.commontest.mongodb.dao.CustomerRepository;
import com.cqw.commontest.mongodb.pojo.Customer;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: caoqingwen
 * @CreateTime: 2022-02-16 16:47
 * @Description:
 */
@Service
public class CustomerService {


    @Resource
    private CustomerRepository customerRepository;


    public Customer save(Customer customer) {
        return customerRepository.save(customer);
    }





}
